@charset "utf-8";
header {
    width: 4rem;
    height: 0.42rem;
    background: green;
}

footer {
    @extend header;
    height: 0.47rem;
}

main {
    flex: 1;
}


/*头部布局开始*/

header {
    display: flex;
    //垂直对齐
    align-items: center;
    //水平对齐
    justify-content: space-between;
    padding: 0 0.1rem;
    //声明为怪异盒子，用于移动端，pc端不行
    box-sizing: border-box;
    >span.iconfont {
        font-size: 0.2rem;
    }
    >h3 {
        font-size: 0.16rem;
    }
}


/*头部布局结束*/


/*内容开始*/

main {
    >.main-banner {
        >.swiper-wrapper {
            >.swiper-slide {
                >img {
                    width: 100%;
                }
            }
        }
    }
    >ul {
        width: 4rem;
        height: 1rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        >li {
            text-align: center;
            box-sizing: border-box;
            >p {
                padding-top: 14px;
            }
        }
    }
    >img {
        width: 100%;
        padding-top: 10px;
        box-sizing: border-box;
    }
}


/*内容结束*/


/*底部布局开始*/

footer {
    border-top: solid 2px #e6e6e6;
    background: #fff;
    box-sizing: border-box;
    >ul {
        width: 4rem;
        height: 0.45rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        >li {
            text-align: center;
            color: #bdbdbd;
            >span.iconfont {
                font-size: 0.22rem;
            }
            >p {
                font-size: 0.12rem;
            }
            &.footr-active {
                color: red;
            }
        }
    }
}


/*底部布局结束*/